/**
 * @description 获取redux中的页面信息的自定义hook
 * @author 大肘子
 */

import { useSelector } from "react-redux";
import { StateType } from "../store";
import { pageInfoStateType } from "../store/pageInfoReducer";

function useGetPageInfo_redux() {
  const pageInfo = useSelector((state: StateType) => {
    return state.pageInfoReducer;
  }) as pageInfoStateType;
  return pageInfo;
}

export default useGetPageInfo_redux;
